package com.ingrid.web.compras.model;

public class Product {

	private int id;
	private String name;
	private String description;
	private String price;

	public Product(int id, String name, String description, String price) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.price = price;
	}

	public int getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getDescription() {
		return description;
	}

	public String getPrice() {
		return price;
	}
	
	@Override
	public String toString() {
		return this.name;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof Product)){
			return false;
		}
		Product other = (Product) obj;
		return this.id == other.id;
	}
}
